import { request } from '@/utils/request';
import CRUD from '@/utils/request/CRUD';

// 投流管理CRUD
export const deliveryListCRUD = CRUD('/system/tl-company');

// 投流管理CRUD
export const companyQuotaLogCRUD = CRUD('/system/company-quota-log');

// 修改公司状态
export function updateTlStatus(data: Record<string, any>) {
  return request.post({
    url: '/system/tl-company/update-status',
    data,
  });
}

// 投流公司-员工列表CRUD
export const companyUserListCRUD = CRUD('/system/company-user');

// 投流公司-员工修改密码
export function updateTlUserPassword(data: Record<string, any>) {
  return request.post({
    url: '/system/company-user/update-password',
    data,
  });
}

// 投流公司-员工修改状态
export function updateCompanyUserStatus(data: Record<string, any>) {
  return request.post({
    url: '/system/company-user/update-status',
    data,
  });
}
